package com.gmail.liulijuan.class5;

import java.util.ArrayList;

public class Sorter {
	
	ArrayList c=new ArrayList();
	

	public Sorter(ArrayList a) {
		
		for (int i = 0; i < a.size(); i++) {
			c.add(a.get(i));
		}
	}
	
	protected ArrayList reverse(ArrayList a){
		ArrayList b=new ArrayList();
		for (int i = 0; i < a.size(); i++) {
			b.set(a.size()-i-1, a.get(i));
		}
		return b;
	}

}
